<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Kra8\Snowflake\HasSnowflakePrimary;
use Illuminate\Database\Eloquent\SoftDeletes;

class DeviceRepairLog extends Model
{
    use SoftDeletes;
    use HasSnowflakePrimary;
    
    protected $fillable = [
        'user_id',
        'remark',
        'device_id'
    ];
    public function author()
    {
        return $this->belongsTo('App\Models\User', 'user_id');
    }
    public function device()
    {
        return $this->belongsTo('App\Models\Device', 'device_id');
    }
}
